process {
    withName: 'SAMTOOLS_FIXMATE' {
        ext.args = params.module_args
    }
    withName: 'SAMTOOLS_SORT' {
        ext.args = params.samtools_sort_args
        ext.prefix = { "${meta.id}.sorted" }
    }
}
